import cv2
import numpy as np

img = cv2.imread("img/salt_pepper_noise_example.png")

result = cv2.medianBlur(img,3)

cv2.imshow("result", result)
cv2.waitKey(0)
